package org.apache.mina.protocol.dns.io.decoder;

import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;

import org.apache.mina.common.IoBuffer;

public class DefaultDecoder implements RecordDecoder {

    /* (non-Javadoc)
     * @see org.apache.mina.protocol.dns.io.decoder.RecordDecoder#decode(org.apache.mina.common.IoBuffer, short)
     */
    public Map<String, Object> decode(IoBuffer buffer, short length)
            throws IOException {
        Map<String, Object> attributes = new TreeMap<String, Object>();
        byte[] addressBytes = new byte[length];
        buffer.get(addressBytes);
        attributes.put("", "");
        return attributes;
    }

}
